package com.niit.repository;

import com.niit.entity.MessageObject;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface MessageObjectRepository extends JpaRepository<MessageObject, Integer> {
	MessageObject findAllBySender_IdAndReceiver_Id(Integer senderId, Integer receiverId);
}